The theme currently hard codes the minimum size of the calendar
menu to make sure there's a designated area for events
(even if there isn't anything currently scheduled).
A side-effect of the hard coded minimum width is that
if the events area is hidden, the menu ends up much
bigger than the calendar. We don't currently ever hide
the events area, but we will in the future.
This commit moves the min-width restriction from the menu
specifically to the events area.
https://bugzilla.gnome.org/show_bug.cgi?id=657082
/* Calendar popup */
-#calendarArea {
- /* this is the width of the entire popup */
- min-width: 600px;
+#calendarEventsArea {
+ /* this is the width of the second column of the popup */
+ min-width: 400px;
}
.calendar-vertical-separator {
this._clock = new St.Label();
this.actor.set_child(this._clock);
- hbox = new St.BoxLayout({name: 'calendarArea'});
+ hbox = new St.BoxLayout({name: 'calendarArea' });
this.menu.addActor(hbox);
// Fill up the first column
hbox.add(item);
// Fill up the second column
-
- vbox = new St.BoxLayout({vertical: true});
+ vbox = new St.BoxLayout({name: 'calendarEventsArea',
+ vertical: true});
hbox.add(vbox, { expand: true });
// Event list